<?php
class AuthController extends ExtAuthController
{
    protected function authenticateUser($username,$password)
    {
        $identity=new UserIdentity($username,$password);
        if($identity->authenticate())
        {
            Yii::app()->user->login($identity);
            return true;
        }
        else
            return false;
    }

    protected function getRedirectUrl()
    {
        return Yii::app()->urlManager->createUrl('site/index');
    }

    protected function getExtJSTheme()
    {
        return 'gray';
    }
}
?>
